const { execSync } = require('child_process');

try {
  console.log('Running basic WMS tests...');
  const output = execSync('npx jest tests/unit/views/wms/basic.spec.js', { encoding: 'utf8' });
  console.log(output);
  console.log('Tests completed successfully!');
} catch (error) {
  console.error('Test execution failed:');
  console.error(error.stdout);
  console.error(error.stderr);
  process.exit(1);
}